<template>
    <div>
        <h1>{{title}}</h1>
        <h2>{{tabledata}}</h2>
        <button @click="fun">点击收藏</button>
    </div>
</template>

<script>
    import axios from 'axios'
    export default{
        name:"movie",
        // props:["title"],//自定义标签
        data:function(){
            return{
                title:"hello",
                tabledata:[]
            }
        },       
        methods:{
            fun(){
               alert("shou")
            }
        } ,
        created:function(){
        axios.get("/user/find").then((response)=>{
        this.tabledata=response.data
             })
        },
    }
</script>